<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Agp\CoreBundle\Manager;

use Agp\CoreBundle\Manager\BaseManager;
/**
 * Description of EmpresaManager
 *
 * @author bondcs
 */
class EmpresaManager extends BaseManager{
    
    public function persist($entity) {
        parent::persist($entity);
        
        $imagemPath = __DIR__.'/../../../../web/docs/'.$entity->getCodEmpresa().'/Imagens/';
        mkdir($imagemPath, 0777, true);
        
        $logoPath = __DIR__.'/../../../../web/docs/'.$entity->getCodEmpresa().'/Logos/';
        mkdir($logoPath, 0777, true);
        
    }
        
}

?>
